package com.sky.service;

import com.sky.entity.AddressBook;
import com.sky.result.Result;
import org.springframework.stereotype.Service;

import java.util.List;

public interface AddressBookService {
    // 修改: 返回AddressBook对象以便控制器能获取到完整的插入后的数据
    void add(AddressBook addressBook);

    List<AddressBook> list();

    void setDefault(int id);

    AddressBook getDefault(Long currentId);

    AddressBook getById(Long id);

    void update(AddressBook addressBook);

    void delete(Long id);
}
